package com.ruoyi.drugSystem.service.impl;

import com.ruoyi.drugSystem.domain.SysStockCk;
import com.ruoyi.drugSystem.mapper.SysStockCkMapper;
import com.ruoyi.drugSystem.service.ISysStockCkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 出库清单Service业务层处理
 *
 * @author ruoyi
 * @date 2023-03-11
 */
@Service
public class SysStockCkServiceImpl implements ISysStockCkService
{
    @Autowired
    private SysStockCkMapper sysStockCkMapper;

    /**
     * 查询出库清单
     *
     * @param id 出库清单主键
     * @return 出库清单
     */
    @Override
    public SysStockCk selectSysStockCkById(Long id)
    {
        return sysStockCkMapper.selectSysStockCkById(id);
    }

    /**
     * 查询出库清单列表
     *
     * @param sysStockCk 出库清单
     * @return 出库清单
     */
    @Override
    public List<SysStockCk> selectSysStockCkList(SysStockCk sysStockCk)
    {
        return sysStockCkMapper.selectSysStockCkList(sysStockCk);
    }

    /**
     * 新增出库清单
     *
     * @param sysStockCk 出库清单
     * @return 结果
     */
    @Override
    public int insertSysStockCk(SysStockCk sysStockCk)
    {
        return sysStockCkMapper.insertSysStockCk(sysStockCk);
    }

    /**
     * 修改出库清单
     *
     * @param sysStockCk 出库清单
     * @return 结果
     */
    @Override
    public int updateSysStockCk(SysStockCk sysStockCk)
    {
        return sysStockCkMapper.updateSysStockCk(sysStockCk);
    }

    /**
     * 批量删除出库清单
     *
     * @param ids 需要删除的出库清单主键
     * @return 结果
     */
    @Override
    public int deleteSysStockCkByIds(Long[] ids)
    {
        return sysStockCkMapper.deleteSysStockCkByIds(ids);
    }

    /**
     * 删除出库清单信息
     *
     * @param id 出库清单主键
     * @return 结果
     */
    @Override
    public int deleteSysStockCkById(Long id)
    {
        return sysStockCkMapper.deleteSysStockCkById(id);
    }
}